package AdapterPattern;

public class PlugAdapter {
    //进行适配
    public static Plug doAdapt(Plug plug){
        if(plug instanceof AmericaPlug){
            return new ChinesePlug();
        }
        return new AmericaPlug();
    }
}
